const express = require('express')
const router = express.Router()
const ctrl1 = require('../controller/user.js')

// 用户请求项目目录
router.get('/login', ctrl1.showRegiterPage)
    // 注册页面
router.get('/register', ctrl1.showLoginPage)
    // 注销
router.get('/logout', ctrl1.showLogout)

router.post('/login', ctrl1.showLogin)
    // 注册用户
router.post('/register', ctrl1.showregiter)

module.exports = router